package org.lwjgltutorial.chapter1;

import org.lwjgl.LWJGLException;
import org.lwjgl.opengl.Display;

public class HelloWorldWithClose {
	public static void main (String args[]) throws InterruptedException{
		try {
			Display.setTitle("Hello World With Close");
			Display.create();
		} catch (LWJGLException e) {
			e.printStackTrace();
		}
		// wait for close request...
		while(!Display.isCloseRequested()){
			Thread.sleep(100);		
		}
		Display.destroy();
	}
}
